import java.util.Scanner;

public class Demo5 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("输入字符:");
		char a = sc.next().charAt(0);
		System.out.println("输入数字:");
		double num1 = sc.nextInt();
		System.out.println("输入数字:");
		double num2 = sc.nextInt();
		/*
		 * double result = 0; if (a == '+') { result = num1 + num2;
		 * System.out.println("" + result); } else if (a == '-') { result = num1 - num2;
		 * System.out.println("" + result); } else if (a == '*') { result = num1 * num2;
		 * System.out.println("" + result); } else if (a == '/') { result = num1 / num2;
		 * System.out.println("" + result); } else if (a == '%') { result = num1 % num2;
		 * System.out.println("" + result);
		 */
		switch (a) {
		case '+':
			System.out.println("" + (num1 + num2));
			break;
		case '-':
			System.out.println("" + (num1 - num2));
			break;
		case '*':
			System.out.println("" + (num1 * num2));
			break;
		case '/':
			System.out.println("" + (num1 / num2));
			break;
		case '%':
			System.out.println("" + (num1 % num2));
			break;

		}
	}

}
